Mapping Code Clones Using Incremental Clone Detection

نویسنده

  • Nils Göde
چکیده

Understanding the evolution of duplicated source code is necessary to investigate the phenomenon of cloning. To trace individual code clones across multiple program versions, clones of consecutive versions need to be mapped. Current methods detect clones of different versions first and then map detected clones retroactively. I present an approach to map individual clones between consecutive program versions during clone detection. The method is integrated into a token-based incremental clone detection algorithm. Clones are mapped according to the changes made to the source files of the program between versions.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Incremental Detection of Parameterized Code Clones

This paper presents a new approach to incremental code clone detection that is based on a special clone representation model. The algorithm detects parameterized clones with parameters of arbitrary size. It can be used for cross-system and cross-revision clone detection.

متن کامل

Incremental Clone Detection and Elimination for Erlang Programs

A well-known bad code smell in refactoring and software maintenance is the existence of code clones, which are code fragments that are identical or similar to one another. This paper describes an approach to incrementally detecting ‘similar’ code based on the notion of least-general common abstraction, or anti-unification, as well as a framework for user-controlled incremental elimination of co...

متن کامل

Revealing Missing Bug-Fixes in Code Clones in Large-Scale Code Bases

If a bug gets fixed in duplicated code, often all duplicates (so called clones) need to be modified accordingly. In practice, however, fixes are often incomplete, causing the bug to remain in one or more of the clones. In this paper, we present an approach to detect such incomplete bug-fixes in cloned code. It analyzes a system’s version history to reveal those commits that fix problems. It the...

متن کامل

Supporting Code Clone Inspection using Parameterized Clone Pattern

Code clone inspection is an integral part of software clone management to assess the quality of clones or the tools reporting them, to decide how to resolve code clone issues, and so on. As clone inspection is a manual process its feasibility is limited especially when working with large numbers of clones. This is rather critical as clone detection tools may return many clones even when applied...

متن کامل

Improving the Unification of Software Clones Using Tree and Graph Matching Algorithms

Improving the Unification of Software Clones using Tree and Graph Matching Algorithms Giri Panamoottil Krishnan Code duplication is common in all kind of software systems and is one of the most troublesome hurdles in software maintenance and evolution activities. Even though these code clones are created for the reuse of some functionality, they usually go through several modifications after th...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Softwaretechnik-Trends

دوره 29  شماره 

صفحات  -

تاریخ انتشار 2009